<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>javascript的XXX</title>
</head>
<script>
	function line(a,b,c){
		function fun(x){
			console.log(a*x*x+b*x*x+c);
			
		}return fun;
	}
	var a =line(1,4,1);
	a(1);
	var b =line(4,1,1);
	b(3);
	/*var document.*/
	</script>

<body>
<input type="text" id="a">
<input type="text" id="b">
<input type="button" onClick="">

<input type="text" id="c">


</body>
</html>
